package com.probiz.estore.core.view.export;

import org.apache.commons.lang.StringUtils;

/**
 * 专门处理过滤displaytag column中的html标签,如<br>,&nbsp;
 * @author wlt
 *
 */
public class EscapeHtmlTagsForReport {
	public static String escapeHtmlTags(String line){
		String result = line;
		result = StringUtils.replace(StringUtils.trim(result),
				"<br>", "\n");
		result = StringUtils.replace(StringUtils.trim(result),
				"<br/>", "\n");
		
		result = StringUtils.replace(StringUtils.trim(result),
				"<BR>", "\n");
		result = StringUtils.replace(StringUtils.trim(result),
				"<BR/>", "\n");
		result = StringUtils.replace(StringUtils.trim(result),
				"&nbsp;", " ");
		
		return result;
		
	}
}
